import request from '@/utils/request'

// 查询Mail Platform列表
export function listTypeplatform(query) {
  return request({
    url: '/mail/typeplatform/list',
    method: 'get',
    params: query
  })
}

// 查询Mail Platform详细
export function getTypeplatform(id) {
  return request({
    url: '/mail/typeplatform/' + id,
    method: 'get'
  })
}

// 新增Mail Platform
export function addTypeplatform(data) {
  return request({
    url: '/mail/typeplatform',
    method: 'post',
    data: data
  })
}

// 修改Mail Platform
export function updateTypeplatform(data) {
  return request({
    url: '/mail/typeplatform',
    method: 'put',
    data: data
  })
}

// 删除Mail Platform
export function delTypeplatform(id) {
  return request({
    url: '/mail/typeplatform/' + id,
    method: 'delete'
  })
}

// 导出Mail Platform
export function exportTypeplatform(query) {
  return request({
    url: '/mail/typeplatform/export',
    method: 'get',
    params: query
  })
}